import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import Cara from '@/views/home/cara.vue'
import Carb from '@/views/home/carb.vue'
import Carc from '@/views/home/carc.vue'
import Card from '@/views/home/card.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: '/home', component: homeView,children:[
      {path: 'cara', component: Cara,},
      {path: 'carb', component: Carb,},
      {path: 'carc', component: Carc,},
      {path: 'card', component: Card,},
    ]},
    
  ],
})

export default router
